//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\MeterVersion.java

package com.ce.pms.charge.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import com.ce.pms.common.model.SysInfo;

/**
 * 走表版本:适合于水,电,气标准
 */
@Entity
@DiscriminatorValue("002")
public class MeterVersion extends AbstractStaVersion {

	/**
	 * 计费方式:001 单一计费002 阶梯计费003 超额累进计费004 按段固定金额
	 */
	@Column(name = "COUNT_MODE", length = 3)
	private String countMode;


	/**
	 * 用量类型:001 按表读数;002 按用量读数
	 */
	@Column(name = "DOSAGE_TYPE", nullable = false, length = 3)
	private String dosageType;

	/**
	 * 表倍率
	 */
	@Column(name = "DYNAMETER", nullable = false)
	private BigDecimal dynameter;

	/**
	 * 是否使用最低用量1 使用0不使用
	 */
	@Column(name = "L_QUANTITY_SELECT", nullable = false,length=1)
	private String lQuantitySelect;

	/**
	 * 最低用量
	 */
	@Column(name = "L_QUANTITY")
	private BigDecimal lQuantity = new BigDecimal("0.00");

	/**
	 * 零行度不计最低用量1 使用;0 不使用
	 */
	@Column(name = "ZERO_SELECT",length=1)
	private String zeroSelect;

	/**
	 * @roseuid 48757D14031C
	 */
	public MeterVersion() {

	}
	/**
	 * mini constructor
	 * @param latefeeSelect 是否收取滞纳金: 页面如果选择设定滞纳金,设置1;否则设置0.
	 * @param countMode     计费方式:001 单一计费002 阶梯计费003 超额累进计费004 按段固定金额
	 * @param dosageType    用量类型:001 按表读数;002 按用量读数
	 * @param dynameter     表倍率
	 * @param quantitySelect是否使用最低用量
	 * @param sysInfo       系统信息
	 */
	public MeterVersion(String countMode ,String latefeeSelect, String dosageType, BigDecimal dynameter, String quantitySelect, SysInfo sysInfo) {
		super(latefeeSelect,sysInfo);
		this.countMode = countMode;
		this.dosageType = dosageType;
		this.dynameter = dynameter;
		lQuantitySelect = quantitySelect;
	}
	public String getDosageType() {
		return dosageType;
	}
	public void setDosageType(String dosageType) {
		this.dosageType = dosageType;
	}
	public BigDecimal getDynameter() {
		return dynameter;
	}
	public void setDynameter(BigDecimal dynameter) {
		this.dynameter = dynameter;
	}
	public BigDecimal getLQuantity() {
		return lQuantity;
	}
	public void setLQuantity(BigDecimal quantity) {
		lQuantity = quantity;
	}
	public String getLQuantitySelect() {
		return lQuantitySelect;
	}
	public void setLQuantitySelect(String quantitySelect) {
		lQuantitySelect = quantitySelect;
	}
	public String getZeroSelect() {
		return zeroSelect;
	}
	public void setZeroSelect(String zeroSelect) {
		this.zeroSelect = zeroSelect;
	}
	public String getCountMode() {
		return countMode;
	}
	public void setCountMode(String countMode) {
		this.countMode = countMode;
	}


}
